/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package common.web;

import common.model.WebUser;
import java.util.List;

/**
 *
 * @author shousuke
 */
public class UserListController extends GenericRequestController {

    private List<WebUser> users = null;

    public List<WebUser> getUsers() {
        if (users == null) {
            users = (List<WebUser>) getEntityManager().createQuery("select wu from WebUser wu").getResultList();
        }
        return users;
    }
}
